﻿#Include ..\baseHandle.ahk

class Exit_ extends BaseHandle {
  static nullable := true

  static Handle(parsed) {
    if parsed.hasParam('f')
      ExitApp()
    return this.Succ('bye.', 'x')
  }

  static Spec() {
    return {
      cmd: 'exit',
      desc: '退出脚本',
      format: 'exit [-f]',
      params: [{
        name: 'f',
        desc: '强制退出'
      }],
      args: {
        desc: '此输入被忽略',
        isOptional: true
      },
      extra: {
        isEnable: false
      }
    }
  }

}
